package com.xuecheng.manage_course.dao;

import com.xuecheng.framework.domain.course.CoursePic;
import org.apache.ibatis.annotations.Delete;
import org.springframework.data.jpa.repository.JpaRepository;

public interface CoursePicRepository extends JpaRepository<CoursePic, String> {

    @Delete("DELETE FROM `course_pic` WHERE `courseid` = #{courseId}")
    int deleteByCourseid(String courseId);
}
